home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
devel
/
vbcc-wos
/
machines
/
amiga
/
doc
/
extralibwos.doc
< prev
next >
Wrap
Text File
|
1999-01-01
|
3KB
|
76 lines
INTRODUCTION
extra.lib is a link library for vbcc which contains certain often
used functions that are not standard ANSI-functions. It may e.g.
be helpful in porting programs.
LEGAL
The functions in extra.lib are written by Kasper B. Graversen and
Volker Barthelmann.
extra.lib is public domain.
USAGE
To link with extra.lib you can either use vconfig (add 'extra' or
'extras' in the lib link menu) or vpm or specify '-lextra' to vc.
There is also a header file <extra.h>.
FUNCTIONS
At the moment extra.lib contains the following functions:
getch() Similar to getchar() but sets the console to raw mode
and does not wait for return.
Caution: This will be rather slow under WarpOS!
stricmp() Case-insensitive variant of strcmp(). Can be inlined
by #defining __INLINE_STRICMP when including <extra.h>.
strnicmp() Case-insensitive variant of strncmp(). Can be inlined
by #defining __INLINE_STRNICMP when including <extra.h>.
chdir() Changes the current directory.
clock() This is an alternative version of the clock() function
in vc.lib. clock() is supposed to return the amount of
cpu-time spent by the current program. As this is
generally not possible on the Amiga clock() from
vc.lib always returns -1.
However there seem to be several badly written
programs that do not check this. So this version
of clock() returns values which are strictly ascending
for successive calls to clock() and the difference
between them is the time difference between the calls.
clock() uses the PowerPC-native GetSysTimePPC() call.
iswhitespace() Variant of isspace(). Can be inlined by #defining
__INLINE_ISWHITESPACE when including <extra.h>.
isseparator() Tests for ',' or '|'. Can be inlined by #defining
__INLINE_ISSEPARATOR when including <extra.h>.
FUTURE
If you are missing certain functions and would like them to be
included in extra.lib send a mail to Kasper B. Graversen at
(internet)
kbg2001@internet.dk
(fidonet)
2:237/30.7
Please explain the desired functions as detailed as possible (how
they should work, prototypes, return values in case of errors etc.).
If possible submit source code for the function.
Kasper B. Graversen and Volker Barthelmann